//
//  COTool.swift
//  CocoProject
//
//  Created by Ruthless on 2023/8/17.
//

import UIKit
@_exported import SwifterSwift
@_exported import Kingfisher
@_exported import Toast_Swift

let SCREENWIDTH = UIScreen.main.bounds.width
let SCREENHEIGHT = UIScreen.main.bounds.height

var statusBarHeight: CGFloat {
    let window = UIApplication.shared.windows.first
    let statusBarHeight = window?.windowScene?.statusBarManager?.statusBarFrame.height ?? 0
    return statusBarHeight
}

let navHeight: CGFloat = 44
var bottomSafeHeight: CGFloat {
    let window = UIApplication.shared.windows.first
    let bottomSafeHeight = window?.safeAreaInsets.bottom ?? 0
    return bottomSafeHeight
}

